import request from '@/router/axios';

// 列表
export const getList = (current, size, params) => {
  return request({
    url: '/api/riskPoint/riskmanagement/page',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

// 获取所属部门
export const getDeptList = (tenantId) => { 
  return request({
    url: '/api/blade-system/dept/tree',
    method: 'get',
    params: {
      tenantId
    }
  })
}

// 获取主要事故列表
export const getMainFaultList = () => { 
  return request({
    url: '/api/blade-system/dict-biz/dictionary?code=main_accident_types_at_risk_points',
    method: 'get'
  })
}